package li.com.springaidemo.controller;

import li.com.springaidemo.common.R;
import li.com.springaidemo.mapper.BaseTableMapper;
import li.com.springaidemo.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/base")
public class BaseController {

    @Autowired
    private BaseTableMapper baseTableMapper;

    @GetMapping("/allImg")
    public R getAllImg(){
        List<String> allImg = baseTableMapper.getAllImg();
        return R.success(allImg);
    }
}
